From 880562ad8b6fa0e48f6ae8b1bb7376f9fb4489da Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 30 Jan 2007 17:50:39 +0000 Subject: [PATCH] pygrub: fsimage binding must free objects with PyObject_DEL, not PyMem_DEL. Signed-off-by: Daniel P. Berrange --- tools/pygrub/src/fsimage/fsimage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/pygrub/src/fsimage/fsimage.c b/tools/pygrub/src/fsimage/fsimage.c index ad0182d691..52a8a4b1ac 100644 --- a/tools/pygrub/src/fsimage/fsimage.c +++ b/tools/pygrub/src/fsimage/fsimage.c @@ -125,7 +125,7 @@ fsimage_file_dealloc(fsimage_file_t *file) if (file->file != NULL) fsi_close_file(file->file); Py_XDECREF(file->fs); - PyMem_DEL(file); + PyObject_DEL(file); } static char fsimage_file_type__doc__[] = "Filesystem image file"; @@ -226,7 +226,7 @@ fsimage_fs_dealloc (fsimage_fs_t *fs) { if (fs->fs != NULL) fsi_close_fsimage(fs->fs); - PyMem_DEL(fs); + PyObject_DEL(fs); } PyDoc_STRVAR(fsimage_fs_type__doc__, "Filesystem image"); -- 2.30.2